package com.pactera.miyuangroup.controller;

import com.pactera.miyuangroup.filter.CurrentUser;
import com.pactera.miyuangroup.vo.response.ResultModel;
import com.pactera.miyuangroup.vo.response.User;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * ces
 *
 * @author Wangwu
 * @create 2018-04-17 下午4:06
 **/
@Api(description = "测试接口")
@RestController
@RequestMapping("test")
public class TestController {

    @RequestMapping(value = "/aa", method = RequestMethod.POST)
    public ResultModel getWebAccessToken(@CurrentUser User user) {
        return ResultModel.ok(user);
    }
}
